-- GENERATED SPELL FOR [Eldreth Darter] --


function spell0_14398(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(22947,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14398', 2000, 1)
end

function spell1_14398(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(17139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14398', 30325, 1)
end

function Sorts_14398(pUnit, Event)
local choix_sorts_14398 = math.random(0, 1)
if choix_sorts_14398 == 0 then
pUnit:RegisterEvent('spell0_14398', 1, 1)
end
if choix_sorts_14398 == 1 then
pUnit:RegisterEvent('spell1_14398', 1, 1)
end
end

function mob14398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14398', math.random(1500, 3000), 1)
end

function mob14398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14398, 1, 'mob14398_Action')
RegisterUnitEvent(14398, 2, 'mob14398_Leave')
RegisterUnitEvent(14398, 3, 'mob14398_Kill')
RegisterUnitEvent(14398, 4, 'mob14398_Die')
